package com.be.beadmin.system.service.ProductMaterialService;

import com.be.beadmin.design.dto.output.ProductBomOverviewEx;
import com.be.beadmin.design.entity.ProductBomOverview;
import com.be.beadmin.product.entity.WorkOrderInfor;

import java.text.ParseException;
import java.util.List;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 15:22 2023/6/20
 * @Modified By:
 **/
public interface WorkOrderInforPmService {

    /**
     * 释放工单
     * @param workOrderId
     * @return
     */
    int releaseWorkOrderInfor(String workOrderId);

    /**
     * 获取BOM信息
     *
     * @param workOrderInfoId
     * @return
     */
    List<ProductBomOverviewEx> getBomOverview(String workOrderInfoId);

    /**
     * 下发分料任务清单
     * @param workOrderInfor
     */
    void deliverPickingDetails(WorkOrderInfor workOrderInfor);


    /**
     * 下发工单
     * @param batchProductId
     * @return
     */
    String issueWorkOrderInforByPage(List<String> batchProductId) throws ParseException;

    /**
     * 关闭工单
     * @param workOrderInfoId
     */
    void closeWorkOrderInfor(String workOrderInfoId);
}
